﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="Performance.aspx.cs" Inherits="Admin_Performance" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%">

        <tr>
           <%-- <td align="right" width="20%">
            </td>--%>
            <td align="right">
                <h2><asp:Label ID="lablPer" runat="server" Text="View Performence"></asp:Label></h2>
            </td>
        </tr>

        <tr>
            <td>
                <table align="left" cellspacing="5" style="border: 4px outset orange;" width="100%">
                    <tr>
                        <td class="style5">
                             <asp:Label ID="lablGroup" runat="server" Text="Group"></asp:Label> &nbsp;&nbsp;
                                 <asp:DropDownList ID="ddlGroup" runat="server" 
                                    Width="220px">
                                </asp:DropDownList>
                                &nbsp;
                                <asp:CompareValidator ID="compGroup" runat="server" ControlToValidate="ddlGroup" 
                                    ErrorMessage="Please Select One subject" ForeColor="Red" Operator="NotEqual" 
                                    ValueToCompare="--Select One--"></asp:CompareValidator>

                         <td>
                            <asp:Button ID="btnShow" runat="server" Text="Show Users" 
                                 BackColor="#E49642" 
                                BorderColor="#CC7A24" ForeColor="White" onclick="btnShow_Click" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                 <asp:Button ID="ClearRecord" runat="server" Text="Clear search" 
                                CausesValidation="False" BackColor="#E49642" 
                                BorderColor="#CC7A24" ForeColor="White" onclick="ClearRecord_Click"  />
                        </td>      

                    </table>
            </td>
        </tr>

        <tr>
            <td>
                <table align="left" width="100%">
                    <tr>
                        <td align="left" valign="top">
                            <asp:GridView ID="gvStudent" runat="server" AutoGenerateColumns="False" 
                    BackColor="LightGoldenrodYellow" 
                                BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="Vertical"
                               Width="930px" DataKeyNames="UserId" onrowcommand="gvStudent_RowCommand">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                            <asp:BoundField DataField="UserId" HeaderText="Id" SortExpression="UserId" 
                                Visible="false" />
                            <asp:BoundField DataField="UserName" HeaderText="Name" 
                                SortExpression="UserName" />
                            <asp:BoundField DataField="NoOfTests" HeaderText="No Of Tests" 
                                SortExpression="NoOfTests" />
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lablRank" runat="server" Text="Performance"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="linkRank" runat="server" Font-Underline="true" CommandName="btnLinkRankClick" CommandArgument='<%# Eval("UserId") %>'>View Performance</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                        </Columns>
                        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
                        </td>
                    </tr>
            </table>
            </td>
        </tr>
    </table>
</asp:Content>

